﻿using EcoSystem.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace EcoSystem
{
    /// <summary>
    /// 添加或更新的DTO
    /// </summary>
    public class CreateOrUpdateDictionaryItemDto
    {
        /// <summary>
        /// 上级ID
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 系统名称
        /// </summary>
        public string ModuleCode { get; set; }

        /// <summary>
        /// 字典编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 字典名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public short SortIndex { get; set; }

        /// <summary>
        /// 字典描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 此类别下所有明细
        /// </summary>
        public List<DictionaryValueDto> Items { get; set; }

    }
}
